<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学校填报</title>
<link href="/styles/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
	$(function() {

		var a = ${s}
		if (a) {
			document.getElementById("submit").style.display = "inline";
		}
		$("#edit").click(function() {

			$("input").removeAttr("readonly");
			$("#first").focus();
		});
		$("#save").click(function() {

			alert("保存成功");

		});

		$("#submit").click(
				function() {
					var studentid = ${student.studentid};
					
					var flag = confirm("确定要提交么?提交后不可修改");
					if (flag == true) {

						window.location.href = "/student/noeditstudent?studentid="
								+ studentid + "&state=1";
					}
				});

		$("#delete").click(function() {

			var flag = confirm("确定要删除该记录么？");
			var studentid = ${student.studentid};
			if (flag == true) {

				window.location.href = "/student/studentdelete?studentid=" + studentid;
			}
		});
	});
</script>
</head>
<body>

	<form action="/student/studentedit" method="post">
		<table class="table11" style="width: 80%; line-height: 25px;">

			<tr>
				<th style="text-align: right;">所属机构</th>
				<th>中北大学教务处</th>
				<th style="text-align: right;">所属辖区</th>
				<th>尖草坪区</th>
				<th style="text-align: right;">状态</th>
				<th>填报</th>
			</tr>
			<tr>
				<td style="text-align: center;" colspan="6">学生信息类</td>
			</tr>
			<tr>
				<td align="right">学生人数</td>
				<td colspan="2"><input type="text" name="stuNum"
					value="${student.stuNum }" /></td>
				<td align="right">班级数</td>
				<td colspan="2"><input type="text" name="classNum"
					value="${student.classNum }" /></td>
			</tr>
			<tr>
				<td align="right">流失学生数</td>
				<td colspan="2"><input type="text" name="offNum"
					value="${student.offNum }" /></td>
				<td align="right">已毕业学生</td>
				<td colspan="2"><input type="text" name="graduateNum"
					value="${student.graduateNum }" /></td>
			</tr>

			<tr>
				<td align="right">在国家级职业技能大赛获奖数</td>
				<td><input type="text" name="countryPrice"
					value="${student.countryPrice }" /></td>
				<td align="right">在省部级职业技能大赛获奖数</td>
				<td><input type="text" name="provicePrice"
					value="${student.provicePrice }" /></td>
				<td align="right">在地市级职业技能大赛获奖数</td>
				<td><input type="text" name="cityPrice"
					value="${student.cityPrice }" /></td>
			</tr>
			<tr>
				<td align="right">填报人</td>
				<td colspan="2">${user.username }</td>
				<td align="right">填报时间</td>
				<td colspan="2"><input type="text" name="sdate" value="${student.sdate }"/></td>
			</tr>
			<tr>
				<td colspan="6" align="center"><label> <input
						type="submit" class="btn" value="保 存" id="save" /> &nbsp;&nbsp;<input
						type="button" value="提交" class="btn" id="submit"
						style="display: none" onclick=""/>&nbsp;&nbsp; <input type="button"
						class="btn" value="删除" id="delete" /> &nbsp;&nbsp;<input
						type="button" class="btn" value="返 回"
						onclick="javascript:history.go(-1);" />
				</label></td>
			</tr>
		</table>
		<input type="hidden" value="${student.studentid }" name="studentid" />
	</form>
</body>
</html>